﻿@model IEnumerable<lnxsj.web.Recruitment.Models.User>

@{
    ViewBag.Title = "Index";
}

<h2>用户列表</h2>

<p>
    @Html.ActionLink("新建", "Create")
</p>
<table class="dataList">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.登录名)
        </th>

        <th style="width:200px">
            @Html.DisplayNameFor(model => model.显示名)
        </th>
        <th style="width:300px">
            @Html.DisplayNameFor(model => model.备注)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.登录名)
        </td>

        <td>
            @Html.DisplayFor(modelItem => item.显示名)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.备注)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id=item.Id }) |

            @Html.ActionLink("删除", "Del", new { id=item.登录名 })
        </td>
    </tr>
}

</table>
